/*
 * XPositionDisplayer.java
 *
 * Created on 8 juin 2007, 23:04
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package courselog.gpsutils;

/**
 * Interface for all objects capable to display the current state
 * of a ListenerToGPS object.
 *
 * @author rigal
 */
public interface XPositionDisplayer {
    /** 
     * Indicator meaning that the displayer should be updated.
     */
    public boolean isActive();
    
    /**
     * Receive the information of the update of the current status.
     */
    public void listenerUpdated(int opt, PositionTracer lG);
    
    /**
     * Provide the current track log to the displayer.
     */
    public void setCurrentTrack(TrackRecord tr);
    
    /** Option bit if track is updated */
    public static final int OPT_TRACKUPDATED=1;
    
    /** Option bit if current position updated */
    public static final int OPT_POSUPDATED=2;
}
